import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSArenaCrossBattleHelper } from "./SeqSArenaCrossBattleHelper";
type int = number;
//class SArenaCrossBattles
    
    export  class SArenaCrossBattles extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SArenaCrossBattles();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            SeqSArenaCrossBattleHelper.write(arg1, this.battles);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.battles = SeqSArenaCrossBattleHelper.read(arg1);
            return;
        }

        public /* const */_type: int=341;

        public /* var */battles: Array<any>;

        public static /* var */_regist: SArenaCrossBattles;
    }

            SArenaCrossBattles._regist = new SArenaCrossBattles(true);
        